# $Id: PKGBUILD 150603 2012-02-18 22:38:56Z pierre $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=libwpg
pkgver=0.2.1
pkgrel=1
pkgdesc="Library for importing and converting Corel WordPerfect(tm) Graphics images."
arch=('i686' 'x86_64')
url="http://libwpg.sourceforge.net/"
license=('LGPL')
depends=('libwpd' 'perl')
options=('!libtool')
source=("http://downloads.sourceforge.net/libwpg/${pkgname}-${pkgver}.tar.bz2")
md5sums=('9d283e02441d8cebdcd1e5d9df227d67')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
